<!-- sua bai viet-->
<?php echo validation_errors(); ?>

<form method="POST" action="<?php echo base_url().'admin/xuly/hotro/list/'.$this->uri->segment(5);?>">
<div class="box_heading">
    <div class="icon">
    <img src="<?php echo base_url().'skin/admin/images/icon_settings.png';?>"/> Hỗ trợ trực tuyến ( <span style="color: red;"> * : không được để trống</span> )  <?php if(!empty($thongbao)){echo '<img src='.base_url().'skin/admin/images/ok.png class="ok"><font color=red><b>'.$thongbao.'</b></font>';}?>
    </div>
    <div class="right">    
    <a href="<?php echo base_url().'admin/xuly/hotro/list';?>">Hủy</a>
    </div>
</div>

<div class="box_noidung">
<table class="form">
<tr><td><font color=red>* </font>Tên </td><td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->name;};?>" name="name"/></td></tr>
<tr><td>Yahoo</td><td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->yahoo;}else echo '';?>" name="yahoo"/></td></tr>
<tr><td>Điện thoại</td><td><input type="text" size="40" value="<?php if(!empty($data)){echo $data->mobile;}else echo '';?>" name="mobile"/></td></tr>
<tr><td><font color=red>* </font>Trạng thái</td><td>
                                            <select name="publish">                                            
                                              <option <?php if(!empty($data)){if($data->publish=='1')echo 'selected="selected"';} ?> value='1'>Hiện</option>';
                                              <option <?php if(!empty($data)){if($data->publish=='0')echo 'selected="selected"';} ?> value='0'>Ẩn</option>';                                              
                                            </select> 
</td></tr>
<tr><td style="text-align: center;" colspan="2"><input class="guidulieu" type="submit" value="Lưu"/></td></tr>
</table>
</div>
</form>
    